#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void print(unsigned int u)
{
	if (u > 9)
	{
		print(u / 10);
	}
	printf("%d ", u % 10);
}
int main()
{
	unsigned int unm = 0;
	scanf("%u", &unm);
	print(unm);
	return 0;
}
